/*
 * User: user
 * Date: 15/12/2007
 * Time: 19:04:12
 */
package org.conann.metadata.records;

import static com.google.common.base.Preconditions.checkNotNull;

import java.lang.annotation.Annotation;
import java.util.HashSet;
import java.util.Set;

public class AnnotationsRecord {

    private Set<Annotation> annotations = new HashSet<Annotation>();

    public void addAnnotation(Annotation annotation) {
        checkNotNull(annotation);
        annotations.add(annotation);
    }

    public boolean containsAnnotation(Annotation annotation) {
        return annotations.contains(annotation);
    }
}